package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//水雷潜艇
public class MineSubmarine extends SeaObject implements EnemyAward {

    /* 构造方法*/
    public  MineSubmarine(){
          super(63,19);

}

    /*重写step()移动*/
    public void step() {
        x+=speed; //x+(向右)

    }
    public ImageIcon getImage(){
        return Images.minesubm;//返回水雷潜艇图片
    }

    public int getLife(){
        return 1;//打掉水雷潜艇，战舰得1条命
    }
}
